import java.util.Scanner;
//Class Person
class Person{
	private int ID;
	private String FirstName, LastName, Email, Phone;
	public int getID(){
		return this.ID;
	}
	public void setID(int x){
		this.ID=x;
	}
	public String getFirstName(){
		return this.FirstName;
	}
	public void setFirstName(String fname){
		this.FirstName=fname;
	}
	public String getLastName(){
		return this.LastName;
	}
	public void setLastName(String lname){
		this.LastName=lname;
	}
	public String getEmail(){
		return this.Email;
	}
	public void setEmail(String email){
		this.Email=email;
	}
	public String getPhone(){
		return this.Phone;
	}
	public void setPhone(String phone){
		this.Phone=phone;
	}
	public Person(int id, String fname, String lname){
		this.ID = id;
		this.FirstName=fname;
		this.LastName=lname;
	}
	public Person(int id, String fname, String lname, String email, String phone){
		this.ID = id;
		this.FirstName=fname;
		this.LastName=lname;
		this.Email=email;
		this.Phone=phone;		
	}
	public Person(){
		this.ID=-1;
		this.FirstName="";
		this.LastName="";
		this.Email="";
		this.Phone="";	
	}
	public void printInfo(){
		System.out.println("\t | " + this.ID + " | " + this.FirstName + " | " + this.LastName + " | " + this.Email + " | " + this.Phone + " |");
	}
	public void scanInfo(){
		Scanner scan=new Scanner(System.in);
		System.out.print("\t Nhap ID:");
		this.ID = scan.nextInt();
		scan.nextLine();//xoa bo ky tu xuong dong trong bo dem dau vao
		System.out.print("\t Nhap FirstName:");
		this.FirstName=scan.nextLine();
		System.out.print("\t Nhap LastName:");
		this.LastName=scan.nextLine();
		System.out.print("\t Nhap Email:");
		this.Email=scan.nextLine();
		System.out.print("\t Nhap Phone:");
		this.Phone=scan.nextLine();
	}	
}
//Class Main
class MainPerson{
	public static void main(String arg[]){
		System.out.println("1. Tao moi mot Person");
		Person p=new Person();
		System.out.println("2. Nhap vao cac thong tin cua Person:");
		p.scanInfo();
		System.out.println("3.Hien thi thong tin cua Person vua tao:");
		p.printInfo();
		System.out.println("4. Nhap Email moi cua Person vua tao:");
		Scanner scan=new Scanner(System.in);
		String newEmail=scan.nextLine();
		p.setEmail(newEmail);
		System.out.println("\t Thong tin cua Person sau khi da thay doi email la:");
		p.printInfo();
	}
}